//
//  LoginSuccessAlert.swift
//  ZNZXSuperMarket
//
//  Created by 四川中农 on 2018/9/7.
//  Copyright © 2018年 四川中农. All rights reserved.
//

import UIKit

class LoginSuccessAlert: UIView {

    @IBOutlet weak var titleLabel: UILabel!
    @IBOutlet weak var contentLabel: UILabel!
    
    
    var confirmClosure:TouchBlock!
    /*
    // Only override draw() if you perform custom drawing.
    // An empty implementation adversely affects performance during animation.
    override func draw(_ rect: CGRect) {
        // Drawing code
    }
    */
    
    @IBAction func confirmMethdo(_ sender: UIButton) {
        if self.confirmClosure != nil {
            self.confirmClosure()
        }
    }
    
    func updateViews(title:String,content:String){
        self.titleLabel.text = title
        self.contentLabel.text = content
    }
    
}
